//
//  SFStatusToolBar.swift
//  SFWeiboPro
//
//  Created by happy on 2017/9/22.
//  Copyright © 2017年 happy. All rights reserved.
//

import UIKit

class SFStatusToolBar: UIView {

    
    var viewModel: SFStatusViewModel? {
        didSet {
//            retweetedButton.setTitle("\(String(describing: viewModel?.status.reposts_count))", for: [])
//            commentButton.setTitle("\(String(describing: viewModel?.status.comments_count))", for: [])
//            likeButton.setTitle("\(String(describing: viewModel?.status.attitudes_count))", for: [])
            
            retweetedButton.setTitle(viewModel?.retweetStr, for: [])
            commentButton.setTitle(viewModel?.commentStr, for: [])
            likeButton.setTitle(viewModel?.likeStr, for: [])
        }
    }
    
    /// 头像
    @IBOutlet weak var retweetedButton: UIButton!
    
    /// 评论
    @IBOutlet weak var commentButton: UIButton!
    
    /// 点赞
    @IBOutlet weak var likeButton: UIButton!
    
}
